﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;

namespace SmartRfMng.appcode
{

    public class AcceptBody
    {
        //BillNO	单据号	varchar2(20)
        //SerialNo	序号	number(27)
        //ToSerialNo	序号参照	number(27)
        //PluID	商品ID	number(19)
        //PluCode	商品编码	varchar2(20)
        //PluName	商品名称	varchar2(100)
        //BarCode	商品条码	varchar2(20)
        //Spec	规格	varchar2(40)
        //Unit	单位	varchar2(6)
        //PackUnit	包装单位	varchar2(6)
        //PackQty	包装细数	number(19)
        //PackCount	包装数量	number(19)
        //SglCount	单件件数	number(19)
        //JhCount	进货数量	number(19)
        //PsShCount	配送收货数量	number(19)
        //PluType	商品类型	varchar2(1)
        //ZpType	赠送类型	varchar2(1)
        //ScDate	生产日期	varchar2(10)
        private long _COMSERIALNO = 0;
        private string _BillNo = string.Empty;
        private long _SerialNo = 0;
        private long _ToSerialNo = 0;
        private long _PluID = 0;
        private string _PluCode = string.Empty;
        private string _PluName = string.Empty;
        private string _BarCode = string.Empty;
        private string _Spec = string.Empty;
        private string _Unit = string.Empty;
        private string _PackUnit = string.Empty;
        private int _PackQty = 0;
        private int _PackCount = 0;
        private int _SglCount = 0;
        private int _JhCount = 0;
        private int _PsShCount = 0;
        private string _PluType = string.Empty;
        private string _ZpType = string.Empty;
        private string _ScDate = string.Empty;

        public long COMSERIALNO
        {
            get { return _COMSERIALNO; }
            set { _COMSERIALNO = value; }
        }

        public string BillNo
        {
            get { return _BillNo; }
            set { _BillNo = value; }
        }

        public long SerialNo
        {
            get { return _SerialNo; }
            set { _SerialNo = value; }
        }

        public long ToSerialNo
        {
            get { return _ToSerialNo; }
            set { _ToSerialNo = value; }
        }

        public long PluID
        {
            get { return _PluID; }
            set { _PluID = value; }
        }

        public string PluCode
        {
            get { return _PluCode; }
            set { _PluCode = value; }
        }

        public string PluName
        {
            get { return _PluName; }
            set { _PluName = value; }
        }

        public string BarCode
        {
            get { return _BarCode; }
            set { _BarCode = value; }
        }

        public string Spec
        {
            get { return _Spec; }
            set { _Spec = value; }
        }

        public string Unit
        {
            get { return _Unit; }
            set { _Unit = value; }
        }

        public string PackUnit
        {
            get { return _PackUnit; }
            set { _PackUnit = value; }
        }

        public int PackQty
        {
            get { return _PackQty; }
            set { _PackQty = value; }
        }

        public int PackCount
        {
            get { return _PackCount; }
            set { _PackCount = value; }
        }

        public int SglCount
        {
            get { return _SglCount; }
            set { _SglCount = value; }
        }

        public int JhCount
        {
            get { return _JhCount; }
            set { _JhCount = value; }
        }

        public int PsShCount
        {
            get { return _PsShCount; }
            set { _PsShCount = value; }
        }

        public string PluType
        {
            get { return _PluType; }
            set { _PluType = value; }
        }

        public string ZpType
        {
            get { return _ZpType; }
            set { _ZpType = value; }
        }

        public string ScDate
        {
            get { return _ScDate; }
            set { _ScDate = value; }
        }

    }

    public class Accept
    {
        //BillNO	单据号	varchar2(20)
        //YwType	业务类型	varchar2(4)
        //OrgCode	门店编码	varchar2(10)
        //OrgName	门店名称	varchar2(100)
        private long _COMSERIALNO = 0;
        private string _BillNo = string.Empty;
        private string _YwType = string.Empty;
        private string _OrgCode = string.Empty;
        private string _OrgName = string.Empty;
        private string _LrDate = string.Empty;
        private long _UserID = 0;
        private string _UserCode = string.Empty;
        private string _UserName = string.Empty;
        private string _RecDate = string.Empty;
        private string _RFNO = string.Empty;
        private string _WMsBillNo = string.Empty;
        private List<AcceptBody> l_AcceptBody = new List<AcceptBody>();

        public long COMSERIALNO
        {
            get { return _COMSERIALNO; }
            set { _COMSERIALNO = value; }
        }

        public string BillNo
        {
            get { return _BillNo; }
            set { _BillNo = value; }
        }

        public string YwType
        {
            get { return _YwType; }
            set { _YwType = value; }
        }

        public string OrgCode
        {
            get { return _OrgCode; }
            set { _OrgCode = value; }
        }

        public string OrgName
        {
            get { return _OrgName; }
            set { _OrgName = value; }
        }


        public string LrDate
        {
            get { return _LrDate; }
            set { _LrDate = value; }
        }

        public long UserID
        {
            get { return _UserID; }
            set { _UserID = value; }
        }
        public string UserCode
        {
            get { return _UserCode; }
            set { _UserCode = value; }
        }

        public string UserName
        {
            get { return _UserName; }
            set { _UserName = value; }
        }

        public string RecDate
        {
            get { return _RecDate; }
            set { _RecDate = value; }
        }

        public string RFNO
        {
            get { return _RFNO; }
            set { _RFNO = value; }
        }

        public string WMsBillNo
        {
            get { return _WMsBillNo; }
            set { _WMsBillNo = value; }
        }

        public List<AcceptBody> ListAcceptBody
        {
            get { return l_AcceptBody; }
            set { l_AcceptBody = value; }
        }
    }
}
